<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
    export default {
        mixins: [Vue.prototype.$vFN.Mixins.Base, Vue.prototype.$vFN.Mixins.Edit],
        components: {
            SelectImage: async () => Vue.extend(await Vue.prototype.$vFN.Components.Base.SelectImage())
        },
        data() {
            return {
                appWindow: window,
                form: {
                    
                },
                loading: true,
                status: 2,
            };
        },
        methods: {
            async sum() {
                let res = await this.$vFN.Http.post({
                    url: "plugin/team-dividend/admin/withdraw/auditWithdraw",
                    data: {
                        ids: this.id,
                        status: this.status,
                    }
                }, window);
                if(res.code == 200) {
                    this.$vFN.Tools.messageSuccess("操作成功")
                    this.mixinEdit_editVisible = false;
                    this.onSuccess();
                }
            },
            // 初始化
            async init() {
                console.log(this.id);
                // 初始化数据
                await this.mixinEdit_editBoxInit({
                    model: "form",
                    id: this.id,
                });
            },
            onSuccess(){

            },


        },
        mounted() {
            this.init();
        },
        activated() {},
    };
</script>